#ifndef PROGRESSDIALOG_H
#define PROGRESSDIALOG_H

#include "ModalLayer.h"

USING_NS_CC;

class ProgressDialog : public ModalLayer
{
public:
	static ProgressDialog*		create(const char* str);
	static ProgressDialog*		defaultDialog();
public:
					ProgressDialog();
	bool				init(const char* str);
	void				setTips(const char* str);
	int				show();
	void				hide();
	size_t				tipsLength() const;
private:
	CCSprite*			_dialogBg;
	CCSprite*			_progress;
	CCLabelTTF*			_tip;
};

#endif // PROGRESSDIALOG_H
